﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using Guline.SupportCMS.Models.Object;
namespace Guline.SupportCMS.Models.Context
{
    public class GulineContext : DbContext
    {
        public GulineContext()
            : base("DefaultConnection")
        {
        }
        public DbSet<Account> Accounts { get; set; }
        public DbSet<Article> Articles { get; set; }
        public DbSet<Category> Categories { get; set; }
        public DbSet<ItemType> ItemTypes { get; set; }
        public DbSet<Menu> Menus { get; set; }
        public DbSet<ColorStyle> ColorStyles { get; set; }
        public DbSet<MenuItem> MenuItems { get; set; }
        public DbSet<Style> Styles { get; set; }
        public DbSet<Template> Templates { get; set; }
        public DbSet<TemplateHook> TemplateHooks { get; set; }

        public DbSet<Video> Videos { get; set; }
        public DbSet<VideoCategory> VideoCategorys { get; set; }
        public DbSet<ArticleCategory> ArticleCategories { get; set; }
        public DbSet<ArticleTag> ArticleTags { get; set; }
        public DbSet<Tag> Tags { get; set; }


        public DbSet<AppConfig> AppConfigs { get; set; }
    }
}